package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * ip设置业务对象 sys_ip
 *
 * @author ruoyi
 * @date 2023-09-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysIpBo extends BaseEntity {

    /**
     * 访问ID
     */
    @NotNull(message = "访问ID不能为空", groups = { EditGroup.class })
    private Long infoId;

    /**
     * 用户账号
     */
//    @NotBlank(message = "用户账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 登录IP地址
     */
    //@NotBlank(message = "登录IP地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ipaddr;

    /**
     * 登录状态（0允许登录 1不允许登录）
     */
    //@NotBlank(message = "登录状态（0允许登录 1不允许登录）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 访问时间
     */
//    @NotNull(message = "访问时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginTime;


}
